// 倒计时
const time = document.querySelector('.time')
let num = 3600
const timer = setInterval(function () {
    num--
    let m = parseInt(num / 60)
    m = m < 10 ? '0' + m : m
    let s = parseInt(num % 60)
    s = s < 10 ? '0' + s : s
    time.innerHTML = `${m}分${s}秒`

    if (num === 0) {
        clearTimeout(timer)
    }
}, 1000)
localStorage.removeItem('shopCarList')
const price = document.querySelector('.prices')
const paymentTotio = localStorage.getItem('total')
price.innerHTML = `￥${paymentTotio}`
if (!paymentTotio) {
    price.innerHTML = `￥0`
}
localStorage.removeItem('total')